<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>xx食堂管理系统</title>
</head>
<script type="text/javascript" src="__JSURL__/jquery.js"></script>
<script type="text/javascript" src="__JSURL__/bootstrap.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {

        $('.header ul li').click(function() {
            $('.sidebar ul li').removeClass('active');
            var index = $('.header ul li').index($(this));
            $('.sidebar ul').eq(index).find('li').eq(0).addClass('active');
            $('.header ul li').removeClass('active');
            $(this).addClass('active');
            $('.sidebar ul').hide();
            $('.sidebar ul').eq(index).show();
            $('iframe').attr('src', $('.sidebar ul').eq(index).find('li a').get(0).href);
            return false;
        });

        $('.sidebar ul li').click(function() {
            $('.sidebar ul li').removeClass('active');
            $(this).addClass('active');
        });
    });
</script>

<link rel="stylesheet" type="text/css" href="__CSSURL__/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="__CSSURL__/base.css" />
<body>
<div class="header">
    <span class="title">XX食堂管理系统</span>
    <ul class="nav nav-tabs">
        <li class="active">
            <a href="#">首　页</a>
        </li>
        <li><a href="">采　购</a></li>
        <li><a href="">库　存</a></li>
        <li><a href="">就　餐</a></li>
        <li><a href="">其　他</a></li>
    </ul>
    <span class="info">欢迎，{$Think.session.admin} 　　[ <a href="{:U('Public/logout')}">退出</a> ]</span>
</div>

<div class="sidebar">
    <ul class="nav nav-pills nav-stacked" style="display:block">
        <li class="active"><a href="{:U('Index/admin')}" target="main">首页</a></li>
        <li><a href="#">Library</a></li>
    </ul>
    <ul class="nav nav-pills nav-stacked" style="display:none">
        <li class="active"><a href="{:U('Supplier/index')}" target="main">供应商管理</a></li>
        <li><a href="{:U('Type/index')}" target="main">供货种类管理</a></li>
        <li><a href="{:U('Stuff/index')}" target="main">菜品材料管理</a></li>
        <li><a href="{:U('Food/index')}" target="main">菜式管理</a></li>
        <li><a href="{:U('Menu/index')}" target="main">菜单管理</a></li>
    </ul>
    <ul class="nav nav-pills nav-stacked" style="display:none">
        <li class="active"><a href="{:U('Purchase/index')}" target="main">采购清单管理</a></li>
        <li class="active"><a href="{:U('Enter/index')}" target="main">入库清单管理</a></li>
        <li class="active"><a href="{:U('Out/index')}" target="main">出库清单管理</a></li>
        <li class="active"><a href="{:U('EnterAccount/index')}" target="main">入库台帐管理</a></li>
        <li class="active"><a href="{:U('OutAccount/index')}" target="main">出库台帐管理</a></li>
    </ul>
    <ul class="nav nav-pills nav-stacked" style="display:none">
        <li class="active"><a href="{:U('NConfirm/index')}" target="main">本单位就餐确认</a></li>
        <li><a href="{:U('NativeTable/index')}" target="main">本单位就餐表</a></li>
        <li><a href="{:U('FConfirm/index')}" target="main">外来就餐确认</a></li>
        <li><a href="{:U('ForeignTable/index')}" target="main">外来单位就餐表</a></li>
        <li><a href="{:U('Count/index')}" target="main">就餐统计报表</a></li>
        <li><a href="{:U('Pay/index')}" target="main">就餐费用管理</a></li>
    </ul>
    <ul class="nav nav-pills nav-stacked" style="display:none">
        <li class="active"><a href="{:U('Worker/index')}" target="main">工人信息管理</a></li>
    </ul>
</div>

<div class="main">
    <iframe src="{:U('Index/admin')}" name="main" frameborder="0" style="width:80%;"></iframe>
</div>
